package com.ruoyi.module.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.module.domain.DictLanguageCategory;
import com.ruoyi.module.mapper.DictLanguageCategoryMapper;
import com.ruoyi.module.service.IDictLanguageCategoryService;

/**
 * 语言分类Service业务层处理
 * 
 * @author ruoyi
 */
@Service
public class DictLanguageCategoryServiceImpl implements IDictLanguageCategoryService
{
    @Autowired
    private DictLanguageCategoryMapper dictLanguageCategoryMapper;

    /**
     * 查询语言分类列表
     * 
     * @param dictLanguageCategory 语言分类
     * @return 语言分类
     */
    @Override
    public List<DictLanguageCategory> selectDictLanguageCategoryList(DictLanguageCategory dictLanguageCategory)
    {
        return dictLanguageCategoryMapper.selectDictLanguageCategoryList(dictLanguageCategory);
    }

    /**
     * 查询所有语言分类
     * 
     * @return 语言分类列表
     */
    @Override
    public List<DictLanguageCategory> selectDictLanguageCategoryAll()
    {
        return dictLanguageCategoryMapper.selectDictLanguageCategoryAll();
    }

    /**
     * 根据ID查询语言分类
     * 
     * @param id 语言分类ID
     * @return 语言分类
     */
    @Override
    public DictLanguageCategory selectDictLanguageCategoryById(String id)
    {
        return dictLanguageCategoryMapper.selectDictLanguageCategoryById(id);
    }

    /**
     * 新增语言分类
     * 
     * @param dictLanguageCategory 语言分类
     * @return 结果
     */
    @Override
    public int insertDictLanguageCategory(DictLanguageCategory dictLanguageCategory)
    {
        return dictLanguageCategoryMapper.insertDictLanguageCategory(dictLanguageCategory);
    }

    /**
     * 修改语言分类
     * 
     * @param dictLanguageCategory 语言分类
     * @return 结果
     */
    @Override
    public int updateDictLanguageCategory(DictLanguageCategory dictLanguageCategory)
    {
        return dictLanguageCategoryMapper.updateDictLanguageCategory(dictLanguageCategory);
    }

    /**
     * 批量删除语言分类
     * 
     * @param ids 需要删除的语言分类ID
     * @return 结果
     */
    @Override
    public int deleteDictLanguageCategoryByIds(String[] ids)
    {
        return dictLanguageCategoryMapper.deleteDictLanguageCategoryByIds(ids);
    }

    /**
     * 删除语言分类信息
     * 
     * @param id 语言分类ID
     * @return 结果
     */
    @Override
    public int deleteDictLanguageCategoryById(String id)
    {
        return dictLanguageCategoryMapper.deleteDictLanguageCategoryById(id);
    }
}

